<extend name='Public/demo' />

<block name='contents'>
	<div class="row">

		<aside class="profile-info col-lg-offset-1 col-lg-10">
			<section class="panel">
				<header class="panel-heading">编辑管理员用户资料</header>
				<div class="panel-body">
					<div class="form">
						<form class="cmxform form-horizontal tasi-form"  method="post" action="{:U('editdo')}" novalidate="novalidate" enctype="multipart/form-data">

							<div class="form-group ">
								<label  class="control-label col-lg-2">用户名</label>
								<div class="col-lg-10">
									<input class=" form-control"  name="username" type="text" value="{$res[0]['username']}">
								</div>
							</div>
							<div class="form-group ">
								<label for="firstname" class="control-label col-lg-2">昵称</label>
								<div class="col-lg-10" >
									<input class=" form-control"  name="admin_name" type="text" value="{$res[0]['admin_name']}">
								</div>
							</div>

							<div class="form-group ">
								<label class="control-label col-lg-2" >重置密码</label>
								<div class="col-lg-3" style="margin-left:-20px">
									<label class="checkbox-inline" >
										<input type="radio" id="inlineCheckbox1" value="1" name="repass" >重置
									</label>
									<label class="checkbox-inline">
										<input type="radio" id="inlineCheckbox2" value="0" name="repass" checked>不重置
									</label>
								</div>
							</div>
							<div class="form-group ">
								<label class="control-label col-lg-2" for="inputSuccess">管理组</label>
								<div class="col-lg-10">
									<select class="form-control m-bot15" name="group_id">
										<foreach name="group_list" item="vo">
											<option value="{$vo['id']}" {$vo['id'] == $res[0]['group_id']?'selected':''}>{$vo.title}</option>
										</foreach>
									</select>
								</div>
							</div>

							<div class="form-group">
								<div class="col-lg-offset-2 col-lg-10">
									<button class="btn btn-danger" type="submit">保存</button>
									<button class="btn btn-default" type="button">取消</button>
								</div>
							</div>

							<input type="hidden" name="admin_id" value="{$Think.get.id}"></form>
					</div>
				</div>
			</section>
		</aside>
	</div>

	<!--custom switch-->
	<script src="__PUBLIC__/Theme/js/bootstrap-switch.js"></script>
	<!--custom tagsinput-->
	<script src="__PUBLIC__/Theme/js/jquery.tagsinput.js"></script>
	<!--custom checkbox & radio-->
	<script type="text/javascript" src="__PUBLIC__/Theme/js/ga.js"></script>

	<script type="text/javascript" src="__PUBLIC__/Theme/assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Theme/assets/bootstrap-daterangepicker/date.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Theme/assets/bootstrap-daterangepicker/daterangepicker.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Theme/assets/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Theme/assets/ckeditor/ckeditor.js"></script>

	<!--script for this page-->
	<script src="__PUBLIC__/Theme/js/form-component.js"></script>

</block>